package xyz.gpgl.erp.logic.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import common.util.mybatis.plus.logic.LogicBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import xyz.gpgl.erp.logic.entity.emeus.LogicSharesEmeus.DoubleSales;
import xyz.gpgl.erp.logic.entity.emeus.LogicSharesEmeus.StockExchange;

import java.math.BigDecimal;

/**
 * <p>
 * 股票信息
 * </p>
 *
 * @author liubo
 * @since 2021-04-21
 */
@Data
@ToString
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="LogicShares对象", description="股票信息")
public class LogicShares extends LogicBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "股票编码")
    private String code;

    @ApiModelProperty(value = "股票名称")
    private String name;

    @ApiModelProperty(value = "证券交易所[0:上证,1:深证]")
	@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
    private StockExchange stockExchange;

    @ApiModelProperty(value = "当前价格")
    private BigDecimal currentPrice;

    @ApiModelProperty(value = "最后一个交易日涨跌金额")
    private BigDecimal upAndDownMoney;

    @ApiModelProperty(value = "最后一个交易日涨跌幅")
    private BigDecimal upAndDownRange;

    @ApiModelProperty(value = "每股净资产")
    private BigDecimal netAssets;

    @ApiModelProperty(value = "市净率")
    private BigDecimal priceToBookRatio;

    @ApiModelProperty(value = "总营收")
    private BigDecimal totalRevenue;

    @ApiModelProperty(value = "总营收-同比")
    private BigDecimal totalRevenueYearOver;

    @ApiModelProperty(value = "净利润")
    private BigDecimal netProfit;

    @ApiModelProperty(value = "净利润-同比")
    private BigDecimal netProfitYearOver;

    @ApiModelProperty(value = "毛利率")
    private BigDecimal grossProfitMargin;

    @ApiModelProperty(value = "净利率")
    private BigDecimal netInterestRate;

    @ApiModelProperty(value = "负债率")
    private BigDecimal debtRatio;

    @ApiModelProperty(value = "每股未分配利润")
    private BigDecimal undistributedProfitPerShare;

    @ApiModelProperty(value = "上次牛市最大价格")
    private BigDecimal maxPrice;

    @ApiModelProperty(value = "是否两倍起售[0:是,1:否]")
	@JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
    private DoubleSales doubleSales;

    @ApiModelProperty(value = "当前成本价")
    private BigDecimal currentCostPrice;

    @ApiModelProperty(value = "我的涨跌幅")
    private BigDecimal myRange;
}
